package com.itheima.demo2;

import java.util.Scanner;

public class 键盘录入字符串 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入字符串");
        String S = sc.next();
        System.out.println(S);
    }

}